package com.upf1sh.service.SJZ;

import com.upf1sh.bean.SJZ.SJZ;
import com.upf1sh.mapper.SJZ.SJZMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SJZService {
    @Resource
    private SJZMapper sjzMapper;

    public List<SJZ> getAllData() {
        return sjzMapper.selectList(null);
    }

    public int insertData(SJZ sjz) {
        return sjzMapper.insert(sjz);
    }
}
